
@extends('/layouts.app')
@section("content")
    <div class="container seticon">
        <div class="row">
            <div class="col-sm-2">
                @include("layouts.aside")
            </div>
            <div class="col-sm-10">
                <div class="panel panel-default seticon_form">
                    <div class="panel-heading">用户>头像设置</div>
                    <div class="panel-body">
                        <div class="old_icon">
                            <img src="/upload/{{$user->pic}}">
                        </div>
                        <form method="post" action="{{route('saveicon')}}" enctype="multipart/form-data">
                            {{csrf_field()}}
                            <div class="form-group">
                                <label for="pic">头像</label>
                                <input type="file" id="pic" name="pic">
                                <p class="help-block">请上传jpg或png格式的图片</p>
                            </div>

                            <button type="submit" class="btn btn-default">上传</button>
                        </form>
                    </div>
                </div>

            </div>

        </div>

    </div>
@endsection




